package com.bbx.taxi.client.Bean;

import com.yanxuwen.PinnedHeader.IndexBar.bean.BaseIndexPinyinBean;

import java.io.Serializable;
import java.util.List;

public class City extends BaseIndexPinyinBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 城市类型分为，定位城市，历史城市，开通城市
	 */
	public enum CityType{
		location,historical,open
	}
	//判断是否是定位城市
	private CityType type;
	private String province;
	private String city;
	private String number;
	private String firstPY;
	private String allPY;
	private String allFristPY;
	public String is_detail;
	public String is_new;
	public List<String> list_child;

	public City() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public String getTarget() {
//		return city;
		return "开通城市";
	}

	@Override
	public boolean isNeedToPinyin() {
		return false;
	}


	@Override
	public boolean isShowSuspension() {
		return true;
	}

	public City(String province, String city, String number, String firstPY,
			String allPY, String allFristPY) {
		super();
		this.province = province;
		this.city = city;
		this.number = number;
		this.firstPY = firstPY;
		this.allPY = allPY;
		this.allFristPY = allFristPY;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getFirstPY() {
		return firstPY;
	}
    //统一大写
	public void setFirstPY(String firstPY) {
		this.firstPY = firstPY.toUpperCase();
	}

	public String getAllPY() {
		return allPY;
	}

	public void setAllPY(String allPY) {
		this.allPY = allPY.toUpperCase();;
	}

	public String getAllFristPY() {
		return allFristPY;
	}

	public void setAllFristPY(String allFristPY) {
		this.allFristPY = allFristPY.toUpperCase();;
	}
	public String getIs_detail(){
		return is_detail;
	}
	public void setIs_detail(String is_detail){
		this.is_detail=is_detail;
	}
	public String getIs_new(){
		return is_new;
	}
	public void setIs_new(String is_new){
		this.is_new=is_new;
	}

	public void setType(CityType type){
		this.type=type;
	}
	public CityType getType(){
		return  type;
	}

	public void setListChild(List<String> list_child){
		this.list_child=list_child;
	}
	public List<String> getListChild(){
		return list_child;
	}
	@Override
	public String toString() {
		return "City [province=" + province + ", city=" + city + ", number="
				+ number + ", firstPY=" + firstPY + ", allPY=" + allPY
				+ ", allFristPY=" + allFristPY + "]";
	}

}
